package com.team7.happycommunity.propertymanagement.dao;

import com.team7.happycommunity.propertymanagement.pojo.PpPayservice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PpPayserviceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PpPayservice record);

    int insertSelective(PpPayservice record);

    PpPayservice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PpPayservice record);

    int updateByPrimaryKey(PpPayservice record);

    @Select("select * from pp_payservice where pp_payservice.propertyid = #{uid} and pp_payservice.service_type=1")
    List<PpPayservice> selectByPageAndUsername(@Param("currentPage")Integer currentPage, @Param("pageSize") Integer pageSize,
                                               @Param("uid") Integer uid);
}